package com.neu.icloud.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neu.icloud.entity.Factory;
import com.neu.icloud.mapper.FactoryMapper;
import com.neu.icloud.service.FactoryService;

@Service
public class FactoryServiceImpl implements FactoryService{

	@Autowired
	private FactoryMapper factoryMapper;
	
	@Override
	public List<Factory> getAllFactory(Factory factory) {
		// TODO Auto-generated method stub
		return factoryMapper.getAllFactory(factory);
	}

	@Override
	public int saveFactory(Factory factory) {
		// TODO Auto-generated method stub
		return factoryMapper.saveFactory(factory);
	}

}
